package com.gxa.modules.pc.hospital.noticeback.controller;
import com.gxa.common.utils.Result;
import com.gxa.modules.model.dto.NoticeDto;
import com.gxa.modules.pc.hospital.noticeback.mapper.NoticeBackMapper;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;


/**
 * <p>
 * 预约须知表 前端控制器
 * </p>
 *
 * @author lst
 * @since 2022-11-14 09:05:41
 */
@Api(tags = "预约须知")
@RestController
@RequestMapping("/notice")
public class NoticeBackController {

    @Autowired
    private NoticeBackMapper noticeBackMapper;

    @ApiOperation("须知添加")
    @PostMapping("/insertNotice")
    public Result insertNotice(@RequestBody NoticeDto noticeDto){

        int insertNotice = noticeBackMapper.insertNotice(noticeDto);

        return new  Result().ok(insertNotice);


    }
}
